package com.caiyouxi.partner.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.partner.model.PartnerFinanceBean;
import com.caiyouxi.partner.service.PartnerFinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("partner_finance")
public class PartnerFinanceController {
    @Autowired
    private PartnerFinanceService service;

    @RequestMapping("delete_finance")
    private ResData delete_finance(@RequestBody PartnerFinanceBean bean){
        return service.delete_finance(bean);
    }

    @RequestMapping("insert_finance")
    public ResData insert_finance(@RequestBody PartnerFinanceBean bean){
        return service.insert_finance(bean);
    }

    @RequestMapping("select_finance")
    public ResData select_finance(@RequestBody PartnerFinanceBean bean){
        return service.select_finance(bean);
    }

    @RequestMapping("update_finance")
    public ResData update_finance(@RequestBody PartnerFinanceBean bean){
        return service.update_finance(bean);
    }

    @RequestMapping("select_finance_list")
    public ResData select_finance_list(@RequestBody PartnerFinanceBean bean){
        return service.select_finance_list(bean);
    }
}
